package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Todo: 处理401请求
 * @DateTime: 22/02/23/0023 下午 2:36
 * @Component: 成都蜗牛学苑
 **/
@RestController
public class ErrorController {
    @RequestMapping("/401")
    public ResponseEntity send401(){
        return new ResponseEntity(401,"token认证失败！","");
    }
}
